import axios from 'axios'
import Vue from 'vue'
import VueAxios from 'vue-axios'
import App from './App.vue'
import router from './router'
import store from './store'
import VueAxiosPlugin from 'vue-axios-plugin'
import { axiosFilter } from './config/axiosConfig'
import { ws } from './config/config'

Vue.use(VueAxiosPlugin, {
  // 请求拦截处理
  reqHandleFunc: config => axiosFilter.create('reqHandleFunc', config),
  reqErrorFunc: error => axiosFilter.create('reqErrorFunc', error),
  // 响应拦截处理
  resHandleFunc: response => axiosFilter.create('resHandleFunc', response),
  resErrorFunc: error => axiosFilter.create('resErrorFunc', error)
})
Vue.use(VueAxios, axios)



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
